package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jyy.prefabricated.vo.SubjectiveAnswerVo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 学生考试
 */
@Data
public class StudentExam implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotNull(message = "StudentExamId不能为空")
    private Integer id;

    /**
     * 考试id
     */
    private Integer examId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 当前考试次数
     */
    private Integer currentCount;

    /**
     * 当前考试客观题总分数
     */
    private Double score ;

    /**
     * 当前考试状态
     */
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    // 批阅状态
    private Integer readOverStatus;

    /**
     * 当前考试主观题分数
     */
    private Double subjectiveScore ;
    //主观题集合（题目内容、学生答案、参考答案、评阅分）
    List<SubjectiveAnswerVo> subjectiveAnswerVoList;

    /**
     * 身份证号
     */
    private String idCard;


}